import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '用户姓名',
    align: "center",
    dataIndex: 'realname'
  },
  {
    title: '用户账号',
    align: "center",
    dataIndex: 'username'
  },
  {
    title: '用户电话',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '市',
    align: "center",
    dataIndex: 'city'
  },
  {
    title: '省',
    align: "center",
    dataIndex: 'province'
  },
  {
    title: '区域',
    align: "center",
    dataIndex: 'area'
  },
  {
    title: '有效在线天数',
    align: "center",
    dataIndex: 'validDays'
  },
  {
    title: '光猫型号',
    align: "center",
    dataIndex: 'model'
  },
  {
    title: '老旧光猫',
    align: "center",
    dataIndex: 'formerGm'
  },
  {
    title: '签约带宽',
    align: "center",
    dataIndex: 'signAContract'
  },
  {
    title: '是否存在异网手机',
    align: "center",
    dataIndex: 'sjyc'
  },
  {
    title: '终端速率',
    align: "center",
    dataIndex: 'szsl'
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '用户姓名',
    field: 'realname',
    component: 'Input',
  },
  {
    label: '用户账号',
    field: 'username',
    component: 'Input',
  },
  {
    label: '用户电话',
    field: 'phone',
    component: 'Input',
  },
  {
    label: '市',
    field: 'city',
    component: 'Input',
  },
  {
    label: '省',
    field: 'province',
    component: 'Input',
  },
  {
    label: '区域',
    field: 'area',
    component: 'Input',
  },
  {
    label: '有效在线天数',
    field: 'validDays',
    component: 'Input',
  },
  {
    label: '光猫型号',
    field: 'model',
    component: 'Input',
  },
  {
    label: '老旧光猫',
    field: 'formerGm',
    component: 'Input',
  },
  {
    label: '签约带宽',
    field: 'signAContract',
    component: 'Input',
  },
  {
    label: '是否存在异网手机',
    field: 'sjyc',
    component: 'Input',
  },
  {
    label: '终端速率',
    field: 'szsl',
    component: 'Input',
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
